﻿@model PagedList.IPagedList<shop.SanPham>
@using PagedList.Mvc;


    <div class="content-module-heading cf">
        <h3 class="fl">Sản phẩm</h3>
        <span class="fr expand-collapse-text">Click to collapse</span>
        <span class="fr expand-collapse-text initial-expand">Click to expand</span>
    </div> <!-- end content-module-heading -->
    <div class="content-module-main">
        <table>
            <thead>
                <tr>
                    <th><input type="checkbox" id="table-select-all"></th>
                    <th>Tên sản phẩm</th>
                    <th>Hình ảnh</th>
                    <th>Giá</th>
                    <th>Chức năng</th>
                </tr>

            </thead>

            <tfoot>

                <tr>

                    <td colspan="5" class="table-footer">

                        <label for="table-select-actions">Chức năng</label>

                        <select id="table-select-actions">
                            <option value="option1">Xóa</option>
                            <option value="option2">Sửa</option>
                            @*<option value="option3">Archive</option>*@
                        </select>

                        <a href="#" class="round button blue text-upper small-button">Thực hiện</a>

                    </td>

                </tr>

            </tfoot>

            <tbody>
                @foreach(var item in Model)
                {
                  <tr>
                    <td><input type="checkbox"></td>
                    <td>@item.TenSP</td>
                    <td><img width="120" src="~/images/sanpham/@item.HinhAnh" /></td>
                    <td><a href="#">@string.Format("{0:0,0}",item.Gia)</a></td>
                    <td>
                        <a href="#" class="table-actions-button ic-table-edit"></a>
                        <a href="#" class="table-actions-button ic-table-delete"></a>
                    </td>
                </tr>  
                }
                
            </tbody>
        </table>
        @Html.PagedListPager(Model, page => Url.Action("DanhSanPham", new { pagesize = 25 ,page}))
    </div> <!-- end content-module-main -->



